package com.xebest.web.form;

import com.xebest.web.form.base.BaseForm;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;


/**
 * @author 李书峰
 */
public class XeVenPurchSupLinkmanForm extends BaseForm {

    private static final long serialVersionUID = 7901823126612696019L;

    /**
     * 联系人编码
     */
    private String linkmanCode;

    /**
     * 供货商编码
     */
    @NotNull(message = "供货商编码不能为空")
    @NotEmpty(message = "供货商编码不能为空")
    @Length(min = 1, max = 20, message = "供货商编码长度不能大于20个字符")
    private String supplierCode;

    /**
     * 联系人姓名
     */
    @NotNull(message = "联系人姓名不能为空")
    @NotEmpty(message = "联系人姓名不能为空")
    @Length(min = 1, max = 20, message = "联系人姓名长度不能大于20个字符")
    private String linkName;

    /**
     * 联系人手机
     */
    @NotNull(message = "联系人手机不能为空")
    @NotEmpty(message = "联系人手机不能为空")
    @Length(min = 1, max = 20, message = "联系人手机长度不能大于20个字符")
    private String linkPhone;

    /**
     * 联系人电话
     */
    private String linkMobile;

    /**
     * 是否是首要联系人(1:是 2：否)
     */
    @NotNull(message = "是否是首要联系人不能为空")
    private Integer firstLinkMan;

    /**
     * 省id
     */
    @NotNull(message = "省id不能为空")
    private Integer provinceId;

    /**
     * 市id
     */
    @NotNull(message = "市id不能为空")
    private Integer cityId;

    /**
     * 区id
     */
    @NotNull(message = "区id不能为空")
    private Integer areaId;

    /**
     * 街道
     */
    @NotNull(message = "街道不能为空")
    @NotEmpty(message = "联系人街道不能为空")
    @Length(min = 1, max = 100, message = "联系人街道不能大于50个字符")
    private String street;

    /**
     * 是否删除 （1:未删除 2:已删除）
     */
    private Integer delFlag;

    /**
     * 修改人
     */
    private String modifyUser;

    /**
     * 版本号
     */
    private Integer version;

    public String getLinkmanCode() {
        return linkmanCode;
    }

    public void setLinkmanCode(String linkmanCode) {
        this.linkmanCode = linkmanCode;
    }

    public String getSupplierCode() {
        return supplierCode;
    }

    public void setSupplierCode(String supplierCode) {
        this.supplierCode = supplierCode;
    }

    public String getLinkName() {
        return linkName;
    }

    public void setLinkName(String linkName) {
        this.linkName = linkName;
    }

    public String getLinkPhone() {
        return linkPhone;
    }

    public void setLinkPhone(String linkPhone) {
        this.linkPhone = linkPhone;
    }

    public String getLinkMobile() {
        return linkMobile;
    }

    public void setLinkMobile(String linkMobile) {
        this.linkMobile = linkMobile;
    }

    public Integer getFirstLinkMan() {
        return firstLinkMan;
    }

    public void setFirstLinkMan(Integer firstLinkMan) {
        this.firstLinkMan = firstLinkMan;
    }

    public Integer getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Integer provinceId) {
        this.provinceId = provinceId;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public Integer getAreaId() {
        return areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getModifyUser() {
        return modifyUser;
    }

    public void setModifyUser(String modifyUser) {
        this.modifyUser = modifyUser;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
  
